package com.ruoyi.yljf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.yljf.domain.Article;
import org.apache.ibatis.annotations.Update;

/**
 * 咨询文章Mapper接口
 * 
 * @author metaee
 * @date 2025-02-13
 */
public interface ArticleMapper extends BaseMapper<Article> {

    @Update("UPDATE yljf_article SET collect_num = collect_num + 1 WHERE id = #{articleId}")
    void pointLike(Long articleId);

    @Update("UPDATE yljf_article SET forward_num = forward_num + 1 WHERE id = #{articleId}")
    void forwarding(Long articleId);
}
